package thread;


public class ThreadDemo1 {
    public static void main(String[] args) {
        /*StringBuffer buffer = new StringBuffer();
        buffer.append("Hello");
        buffer.append(" ");
        buffer.append("World");
        System.out.println(buffer.toString());*/


        StringBuffer buffer = new StringBuffer("Hello World");
        buffer.insert(5, " Beautiful");
        System.out.println(buffer.toString());
    }
}
